import Vue from 'vue';
import App from './App.vue';
import store from './store';
import router from './router';

import './permission';

import IconSvg from "./plugins/icons";

// 适配flex
// import '@/common/flexible.js';
// 引入全局css
import './assets/scss/index.scss';
import Element from 'element-ui';
import Directives from './utils/directives';

import Videojs from 'video.js';
import 'video.js/dist/video-js.css';
Vue.prototype.$video = Videojs;

// 全局注册图标
// Vue.component('icon', Icon);
Vue.use(IconSvg);
Vue.use(Element);

// import highcharts from 'highcharts'
// import highcharts3d from 'highcharts/highcharts-3d'
// highcharts3d(highcharts)

// 引入echart
// import echarts from 'echarts'
// Vue.prototype.$echarts = echarts

Vue.config.productionTip = false;

new Vue({
    router,
    store,
    render: (h) => h(App),
}).$mount('#app');

// 禁用鼠标右键
// document.oncontextmenu = function() {
//     event.returnValue = false;
// };
Vue.use(Directives);